﻿using System;

namespace ReadyApps.Data.Wiki
{
    /// <summary>
    /// Represents an available page that may be linked to within a wiki control.
    /// </summary>
    public class AvailablePageLink
    {
        #region Properties

        /// <summary>
        /// Gets the available page's page ID.
        /// </summary>
        public int PageID { get; private set; }

        /// <summary>
        /// Gets the available page's title.
        /// </summary>
        public string PageTitle { get; private set; }

        #endregion

        #region Constructor

        /// <summary>
        /// Creates a new <see cref="AvailablePageLink"/> object for the given
        /// page ID and title.
        /// </summary>
        /// <param name="pageID">The page ID of the available page.</param>
        /// <param name="pageTitle">The page title of the available page.</param>
        public AvailablePageLink(int pageID, string pageTitle)
        {
            PageID = pageID;
            PageTitle = pageTitle;
        }

        #endregion
    }
}
